home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
c2
/
pro4
/
kclreol.c
< prev
next >
Wrap
Text File
|
1986-05-08
|
749b
|
33 lines
/* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
#include <stdio.h>
#define EXTERN extern
#include <typedef.h>
#define CTRL_C '\003'
#define CTRL_M '\015'
void ClrEOL()
{
int temp;
if (!GrafModeGlb) {
struct regval regs;
regs.ax = 0x0300;
regs.bx = 0; /* page 0 ???? */
sysint(0x10, ®s, ®s); /* read cursor position */
regs.ax = 0x0a20; /* non-attribute write */
regs.bx = 0; /* page 0 ???? */
regs.cx = 79 - (0xff & regs.dx); /* number of columns left */
sysint(0x10, ®s,®s); /* write blanks */
}
else {
temp = XTextGlb;
for (XTextGlb = temp; XTextGlb <= 80; XTextGlb++)
DC(32);
XTextGlb = temp;
}
}